import fetch from "@36node/fetch";

export default class SDK {
  base;

  constructor(opt = {}) {
    this.base = opt.base || "http://localhost:3001";
  }

  tasks = {
    listTasks: req => {
      const { label, status } = req.query;
      console.log("http label " + label + " status " + status);
      return fetch(`${this.base}/label/${label}?status=${status}`);
    },
  };
}
